package cn.touna.jss.modules.third.pcac.entity;

import cn.touna.risk.api.contraints.IdCard;
import cn.touna.risk.api.domain.BaseDomain;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Digits;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

/**
 * Created by Steve.Tao on 2017/11/24.
 */
public class PcacRequestEntity extends BaseDomain {

    @NotBlank
    private String name;

    @Digits(integer = 2, fraction = 0)
    @Max(12)
    @Min(1)
    private int period;

    @IdCard
    private String idCard;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPeriod() {
        return period;
    }

    public void setPeriod(int period) {
        this.period = period;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }
}
